QuickOPC User's Guide and Reference
LogEntryEventArgs Constructor(String,String,LogEntryType,Int32,Int16,Byte[])



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Instrumentation Namespace > LogEntryEventArgs Class > LogEntryEventArgs Constructor : LogEntryEventArgs Constructor(String,String,LogEntryType,Int32,Int16,Byte[])
The application event source.
The string to write to the event log.
One of the LogEntryType values.
The application-specific identifier for the event.
The application-specific subcategory associated with the message.
An array of bytes that holds the binary data associated with the entry.
Creates an entry with the given message text, application-defined event identifier, and application-defined category for the event log (using the specified event source) and appends binary data to it.
Syntax
'Declaration
 
Public Function New( _
   ByVal source As String, _
   ByVal message As String, _
   ByVal entryType As LogEntryType, _
   ByVal eventId As Integer, _
   ByVal category As Short, _
   ByVal rawData() As Byte _
)
'Usage
 
Dim source As String
Dim message As String
Dim entryType As LogEntryType
Dim eventId As Integer
Dim category As Short
Dim rawData() As Byte
 
Dim instance As New LogEntryEventArgs(source, message, entryType, eventId, category, rawData)

Parameters

source
The application event source.
message
The string to write to the event log.
entryType
One of the LogEntryType values.
eventId
The application-specific identifier for the event.
category
The application-specific subcategory associated with the message.
rawData
An array of bytes that holds the binary data associated with the entry.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also